﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Process.Domain.Entities
{
    /// <summary>
    /// 报工实体
    /// </summary>
    [SugarTable("TimeReportingModel")]
    public class TimeReportingModel:BaseEntity
    {
        /// <summary>
        /// 工作流标识
        /// </summary>
        [SugarColumn(ColumnName = "WorkflowId")]
        public string WorkflowId { get; set; }

        /// <summary>
        /// 报工类型
        /// </summary>
        [SugarColumn(ColumnName = "TimeReportingType")]
        public string TimeReportingType { get; set; }

        /// <summary>
        /// 报工编号
        /// </summary>
        [SugarColumn(ColumnName = "TimeReportingCode")]
        public string TimeReportingCode { get; set; }

        /// <summary>
        /// 生产工单
        /// </summary>
        [SugarColumn(ColumnName = "TicketId")]
        public long TicketId { get; set; }

        /// <summary>
        /// 工作站
        /// </summary>
        [SugarColumn(ColumnName = "Workshop")]
        public long Workshop { get; set; }

        /// <summary>
        /// 生产任务
        /// </summary>
        [SugarColumn(ColumnName = "TicketContext")]
        public string TicketContext { get; set; }

        /// <summary>
        /// 产品编码
        /// </summary>
        [SugarColumn(ColumnName = "ProductCode")]
        public string ProductCode { get; set; }

        /// <summary>
        /// 产品名称
        /// </summary>
        [SugarColumn(ColumnName = "ProductName")]
        public string ProductName { get; set; }

        /// <summary>
        /// 规格型号
        /// </summary>
        [SugarColumn(ColumnName = "Specs")]
        public string Specs { get; set; }

        /// <summary>
        /// 单位
        /// </summary>
        [SugarColumn(ColumnName = "Unit")]
        public string Unit { get; set; }

        /// <summary>
        /// 报工数量
        /// </summary>
        [SugarColumn(ColumnName = "TimeReportingNumber")]
        public string TimeReportingNumber { get; set; }

        /// <summary>
        /// 报工人id（审批人id）
        /// </summary>
        [SugarColumn(ColumnName = "StepAuditId")]
        public long StepAuditId { get; set; }

        /// <summary>
        /// 报工人（审批人名称）
        /// </summary>
        [SugarColumn(ColumnName = "StepAuditName")]
        public string StepAuditName { get; set; }

        /// <summary>
        /// 报工时间
        /// </summary>
        [SugarColumn(ColumnName = "TimeReportingDate")]
        public DateTime TimeReportingDate { get; set; }

        /// <summary>
        /// 工序id（工序编码）
        /// </summary>
        [SugarColumn(ColumnName = "StepId")]
        public string StepId { get; set; }

        /// <summary>
        /// 工序名称（工序名称）
        /// </summary>
        [SugarColumn(ColumnName = "StepName")]
        public string StepName { get; set; }

        /// <summary>
        /// 下一个工序（下一个步骤）
        /// </summary>
        [SugarColumn(ColumnName = "NextprocessId")]
        public string NextprocessId { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        [SugarColumn(ColumnName = "Desc")]
        public string Desc { get; set; }    
    }
}
